<%@ taglib prefix="s" uri="struts-tags" %>
<%
String ctxPath = request.getContextPath();
String hostUrl = request.getScheme() + "://" + request.getServerName() + (request.getServerPort() == 80 ? "" : ":" + request.getServerPort());
String baseUrl = hostUrl + ctxPath + "/";
%>